<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org" xmlns:c="http://www.w3.org/1999/XSL/Transform">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="StyleSheet" href="../css/jpetstore.css" type="text/css" media="screen"/>
</head>
<body>
    <div th:replace="common/IncludeTop">
    </div>

    <div id="Content">

    <!--    鱼板块-->
        <div id="fish" class="category">
            <h2>FISH</h2>
            <table>
                <tr>
                    <th>Product ID</th>
                    <th>Name</th>
                    <th>Delete</th>
                </tr>

                <tr th:each="product:${fishProductList}">
                    <td>
                        <a th:href="@{'/adminCatalog/viewEditProduct?productId='+${product.productId}}" th:text="${product.productId}">productId</a>
                    </td>
                    <td th:text="${product.name}">
                        productName
                    </td>
                    <td>
                        <button>Delete</button>
                    </td>
                </tr>
            </table>
        </div>

        <!--    鸟板块-->
        <div id="birds" class="category">
            <h2>BIRDS</h2>
            <table>
                <tr>
                    <th>Product ID</th>
                    <th>Name</th>
                    <th>Delete</th>
                </tr>

                <tr th:each="product:${birdProductList}">
                    <td>
                        <a th:href="@{'/adminCatalog/viewEditProduct?productId='+${product.productId}}" th:text="${product.productId}">productId</a>
                    </td>
                    <td th:text="${product.name}">
                        productName
                    </td>
                    <td>
                        <button>Delete</button>
                    </td>
                </tr>
            </table>
        </div>

        <!--    猫板块-->
        <div id="cats" class="category">
            <h2>CATS</h2>
            <table>
                <tr>
                    <th>Product ID</th>
                    <th>Name</th>
                    <th>Delete</th>
                </tr>

                <tr th:each="product:${catProductList}">
                    <td>
                        <a th:href="@{'/adminCatalog/viewEditProduct?productId='+${product.productId}}" th:text="${product.productId}">productId</a>
                    </td>
                    <td th:text="${product.name}">
                        productName
                    </td>
                    <td>
                        <button>Delete</button>
                    </td>
                </tr>
            </table>
        </div>

        <!--    狗板块-->
        <div id="dogs" class="category">
            <h2>DOGS</h2>
            <table>
                <tr>
                    <th>Product ID</th>
                    <th>Name</th>
                    <th>Delete</th>
                </tr>

                <tr th:each="product:${dogProductList}">
                    <td>
                        <a th:href="@{'/adminCatalog/viewEditProduct?productId='+${product.productId}}" th:text="${product.productId}">productId</a>
                    </td>
                    <td th:text="${product.name}">
                        productName
                    </td>
                    <td>
                        <button>Delete</button>
                    </td>
                </tr>
            </table>
        </div>

        <!--    爬行动物板块-->
        <div id="reptiles" class="category">
            <h2>REPTILES</h2>
            <table>
                <tr>
                    <th>Product ID</th>
                    <th>Name</th>
                    <th>Delete</th>
                </tr>

                <tr th:each="product:${reptileProductList}">
                    <td>
                        <a th:href="@{'/adminCatalog/viewEditProduct?productId='+${product.productId}}" th:text="${product.productId}">productId</a>
                    </td>
                    <td th:text="${product.name}">
                        productName
                    </td>
                    <td>
                        <button>Delete</button>
                    </td>
                </tr>
            </table>
        </div>

        <div class="handleButtons">
            <a th:href="@{'/adminCatalog/viewAddItem'}"  th:class="Button" th:id="handleOrderButton">
                Add New Item
            </a>
            <a th:href="@{'/adminCatalog/viewAddProduct'}"  th:class="Button" th:id="handleOrderButton">
                Add New Product
            </a>
        </div>

        <div id="BackLink">
            <a href="/catalog/viewAdminmain">Return to Main Menu</a>
        </div>
    </div>

    <div th:replace="common/IncludeBottom">
    </div>
</body>
</html>